package handler

import (
	"net/http"
	"ywebgo/context"
)

type Handler interface {
	Registry
	Handle(w http.ResponseWriter, r *http.Request)
}

type Registry interface {
	Enroll(method string, pattern string, handleFunc HandleFunc)
}

type HandleFunc func(c *context.Context)
